package com.ddc.study.entity;

import com.ddc.study.view.CyclicViewPager;
import com.google.gson.annotations.SerializedName;

import androidx.annotation.NonNull;

/**
 * Created on 2018/4/19.
 *
 * @author lshun
 * @version 1.0
 */
public class Banner extends CyclicViewPager.Item {
    @SerializedName("desc")
    private String mDesc;
    @SerializedName("id")
    private int mId;
    @SerializedName("imagePath")
    private String mImagePath;
    @SerializedName("isVisible")
    private int mVisible;
    @SerializedName("order")
    private int mOrder;
    @SerializedName("title")
    private String mTitle;
    @SerializedName("type")
    private String mType;
    @SerializedName("url")
    private String mUrl;

    public String getDesc() {
        return mDesc;
    }

    public void setDesc(String desc) {
        mDesc = desc;
    }

    public int getId() {
        return mId;
    }

    public void setId(int id) {
        mId = id;
    }

    public String getImagePath() {
        return mImagePath;
    }

    public void setImagePath(String imagePath) {
        mImagePath = imagePath;
    }

    public int getVisible() {
        return mVisible;
    }

    public void setVisible(int visible) {
        mVisible = visible;
    }

    public int getOrder() {
        return mOrder;
    }

    public void setOrder(int order) {
        mOrder = order;
    }

    @Override
    public String getTitle() {
        return mTitle;
    }

    @Override
    public void setTitle(String title) {
        mTitle = title;
    }

    public String getType() {
        return mType;
    }

    public void setType(String type) {
        mType = type;
    }

    public String getUrl() {
        return mUrl;
    }

    public void setUrl(String url) {
        mUrl = url;
    }

    @Override
    public String getImageUrl() {
        return mImagePath;
    }

    @Override
    public String getClickUrl() {
        return mUrl;
    }

    @NonNull
    @Override
    public String toString() {
        return "Banner{" +
                "mDesc='" + mDesc + '\'' +
                ", mId=" + mId +
                ", mImagePath='" + mImagePath + '\'' +
                ", mVisible=" + mVisible +
                ", mOrder=" + mOrder +
                ", mTitle='" + mTitle + '\'' +
                ", mType='" + mType + '\'' +
                ", mUrl='" + mUrl + '\'' +
                '}';
    }
}
